<div style="width:1024px; MARGIN-RIGHT: auto; MARGIN-LEFT: auto;">
    <div class="login-form" style="height: 80px;">
        <input class="btn btn-primary btn-team-join" type="button" value="加入球队" style="width: 300px; float:left; margin: 0px 10px;" />
        <input class="btn btn-primary btn-team-create" type="button" value="创建球队" style="width: 300px; float:left; margin: 0px 10px;" />
    </div>
</div>

<div style="width:1024px; MARGIN-RIGHT: auto; MARGIN-LEFT: auto;">
    <div class="login-form" style="">
        <table width="100%">

<volist name="teamList" id="teamList">
        <tr>
        <td style="text-align:left;">
            <span>{$teamList.name}</span>
        </td>
        <td style="text-align:right;">

            <a href="./index.php?m=Home&c=Team&a=left&team_id={$teamList.team_id}&player_id={$teamList.player_id}"><span>离开该球队</span></a>

            <a href="./index.php?m=Home&c=Team&a=edit&team_id={$teamList.team_id}&player_id={$teamList.player_id}"><span>编辑</span></a>

        </td>
        </tr>
</volist>
        
        </table>
    </div>
</div>

<script type="text/javascript">
    $('.btn-team-join').click( function() {
        window.location="./index.php?m=Home&c=Team&a=joinList";
    });
    $('.btn-team-create').click( function() {
        window.location="./index.php?m=Home&c=Team&a=create";
    });
</script>

